package com.xyh.flowershop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xyh.flowershop.domain.Goods;
import com.xyh.flowershop.vo.req.goods.GoodPageReqVo;
import com.xyh.flowershop.vo.resp.goods.GoodsRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 10728
* @description 针对表【tb_goods】的数据库操作Mapper
* @createDate 2024-03-24 21:08:17
* @Entity com.xyh.flowershop.domain.Goods
*/
public interface GoodsMapper extends BaseMapper<Goods> {

    int removeGoods(List<Long> ids);

    IPage<GoodsRespVo> selectGoodsPage(IPage<GoodsRespVo> pages, @Param("vo") GoodPageReqVo vo);

    List<Goods> selectByIds(List<String> ids);

    void rollbackStock(List<Goods> goodsList);
}




